# -*- coding: utf-8 -*-
"""
Created on Fri Sep 17 19:32:23 2021

@author: Think
"""

num=[1,2,3,4]
type(num[0])
for x in range(4):
    for y in range(4):
        for z in range(4):
            if(x!=y and x!=z and y!=z): print('%d%d%d' %(num[x],num[y],num[z]))
            
"""
主要的简化是在循环数的选择
之前想过123-432数的循环，做三位数的穷举
但在循环里的判断上没有想到简化的办法
"""